<?php $this->load->view('admin/head.php'); ?>
<!--/sidebar-->
<div class="main-wrap">
    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="<?php echo site_url('admin/index/index')?>">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">数据统计</span></div>
    </div>
    <div class="result-wrap">
        <div class="result-title">

        </div>
        <div class="result-content">

        </div>
    </div>
    <div class="result-wrap">
        <div class="result-title">
            <h1>一周游戏搜索记录( <?php echo date('Y/m/d',time()-7*24*3600); ?> - <?php echo date('Y/m/d',time()); ?> )</h1>
        </div>
        <div class="result-content">
            <table class="result-tab" width="33%">
                <tr>
                    <th>序号</th>
                    <th>关键词</th>
                    <th><a href="<?php echo site_url('admin/statistics/index?rc_order=0'); ?>">搜索次数</a></th>
                    <th><a href="<?php echo site_url('admin/statistics/index?rc_order=1'); ?>">搜索结果数</a></th>
                </tr>
                <?php foreach ($top_search as $key=>$val){?>
                    <tr>
                        <td><?php echo $key+1 ?></td>
                        <td><?php echo $val['search_content']?></td>
                        <td><?php echo $val['search_count']?></td>
                        <td><?php echo $val['game_num']; ?></td>
                    </tr>
                <?php } ?>
            </table>
        </div>
    </div>
</div>
<!--/main-->
</div>
</body>
</html>